﻿@{
    ViewBag.Title = "日志管理";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model OASys.Web.Areas.ModuleSys.Models.ModelLogsIndex
<script type="text/javascript">
    $(function () {
        $.datepicker.setDefaults($.datepicker.regional["zh-CN"]);
        dateRange("dateFrom", "dateTo");
    });
</script>
<div>
    @using (Html.BeginForm())
    {
        /* 工具栏部分 toolbar
        ----------------------------------------------------------*/
        <div class="toolbar">
            <div class="toolbar-left">
                @Html.Button(ButtonType.导出XLS, string.Format("defaultExport.showExportDialog('{0}')", Project.Common.StringUtility.EncodeBase64("OASys.Entity.UVSysLogs")), "导出")
                @Html.Button(ButtonType.条件查询, "commonPage.scan()")
            </div>
            <div class="toolbar-right">
                @Html.TextBoxFor(x => x.SearchEntity._CommonSearchCondition, new { @class = "common-search-condition" })
                <input type="submit" class="common-search-submit" value="" />
            </div>
        </div>
     
        /* 组合条件查询 search-container
        ----------------------------------------------------------*/
        <div class="search-container">
            <table>
                <tr>
                    <th>
                        日志类型：
                    </th>
                    <td>
                        @Html.DropDownListFor(x => x.SearchEntity._PLogTypeID, SelectListHelper.ComposeSelectListFromEnum<OASys.Enum.EnumLogType>("-- 请选择 --", ""), new { style = "width:100px" })
                    </td>
                    <th>
                        所属企业：
                    </th>
                    <td>
                        @Html.TextBoxFor(x => x.SearchEntity._PCompanyName, new { style = "width:100px" })
                    </td>
                    <th>
                        操作时间：
                    </th>
                    <td>@Html.TextBoxFor(x => x.SearchEntity._POperationTimeFrom, new { id = "dateFrom", onpaste = "return false;", style = "width:100px" })
                    </td>
                    <th>
                        ~
                    </th>
                    <td>@Html.TextBoxFor(x => x.SearchEntity._POperationTimeTo, new { id = "dateTo", onpaste = "return false;", style = "width:100px" })
                    </td>
                    <td rowspan="2">
                        <input type="submit" value="" class="button-search" />
                        <input type="button" value="" class="button-clear" />
                    </td>
                </tr>
                <tr>
                    <th>
                        操作人姓名：
                    </th>
                    <td>
                        @Html.TextBoxFor(x => x.SearchEntity._POperatorName, new { style = "width:100px" })
                    </td>
                    <th>
                        操作账户：
                    </th>
                    <td>
                        @Html.TextBoxFor(x => x.SearchEntity._PUserAccount, new { style = "width:100px" })
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
     
        /* 说明文字
        ----------------------------------------------------------*/
        <div class="search-clue">
            您可通过该功能，查询系统操作日志并导出成excel文档
        </div>

        /* 表格数据显示
          ----------------------------------------------------------*/
        Html.RenderPartial("Index_Partial");
    }
</div>
